(function(){ var sfVerifyLogo = { logoimg: 'https://示范单位.注册局.网址/ui/images/logo.png', textDetial: 'https://示范单位.注册局.网址/ui/images/text.png', h: '65', imgUrl: 'https://注册局.网址/shifan?sn=CDAM202306210922V92FTW&type=1', domain: '中文域名创新应用论坛.网址', init:function(){ var that = this,imgHeight = 0,imgWidth = 0; if (sfVerifyLogo.h) { imgHeight = Math.abs(sfVerifyLogo.h); } else { imgHeight = 47; } var _comCssHtml = 'display: inline-block;vertical-align: middle;'; var Csswh = 'height:'+imgHeight+'px !important;width:'+imgHeight+'px !important;'; var html = '
\ \ \ 本站网址:'+sfVerifyLogo.domain+'\ \ \ \
', scriptDom = document.getElementById('SFRScript'); scriptDom ? this.insertAfter(html, scriptDom) : document.write(html); this.closeVerify(); }, closeVerify: function (){ var sfrVerify = document.getElementById('sfrVerify'),moreSfInfo = document.getElementById('moreSfInfo'); sfrVerify.onmouseenter = function (){ moreSfInfo.style.display = 'block'; } sfrVerify.onmouseleave = function (){ moreSfInfo.style.display = 'none'; } }, insertAfter: function (newElement, targetElement) { var parent = targetElement.parentNode; if (parent.lastChild == targetElement) { if(typeof newElement === 'string'){ var temp = document.createElement('div'); temp.innerHTML = newElement; var frag = document.createDocumentFragment(); while (temp.firstChild) { frag.appendChild(temp.firstChild); } parent.appendChild(frag); }else{ parent.appendChild(newElement); } } else { if(typeof newElement === 'string'){ var temp = document.createElement('div'); temp.innerHTML = newElement; var frag = document.createDocumentFragment(); while (temp.firstChild) { frag.appendChild(temp.firstChild); } parent.insertBefore(frag, targetElement.nextSibling); }else{ parent.insertBefore(newElement, targetElement.nextSibling); } } } }; sfVerifyLogo.init(); })();